function myRequest(options) {
  return new Promise((resolve, reject) => {
    options.success = resolve
    options.fail = reject
    wx.request(options)
  })
}
export default myRequest